//
//  AXMyHdVC.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/22.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXMyHdVC.h"
#import "InteractTableViewCell.h"
@interface AXMyHdVC ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UITableView *mainTable;

@end

@implementation AXMyHdVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.mainTable];
}

- (UITableView *)mainTable {
    if (!_mainTable) {
        _mainTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT - Hn - Htb) style:UITableViewStylePlain];
        _mainTable.delegate = self;
        _mainTable.dataSource = self;
        _mainTable.separatorStyle = UITableViewCellSelectionStyleNone;
        [_mainTable registerClass:[InteractTableViewCell class] forCellReuseIdentifier:@"InteractTableViewCell"];
        
    }
    return _mainTable;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 10;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 75;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    InteractTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"InteractTableViewCell"];
    //    cell.textLabel.text = _array[indexPath.row];
    //    cell.textLabel.font = FONT_FOURTEEN;
    //    cell.textLabel.textColor = [UIColor colorWithHex:0x333333];
    return cell;
}

@end
